{include file="public:header" /}
{include file="public:menu" /}
<div class="w_container">
    <div class="container">
        <div class="row w_main_row">
            <div class="col-lg-9 col-md-9 w_main_left">
                <!--滚动图开始-->
                <div class="panel panel-default">

                    <div id="w_carousel" class="carousel slide w_carousel" data-ride="carousel">
                        <!-- Indicators -->
                        <ol class="carousel-indicators">
                            <li data-target="#w_carousel" data-slide-to="0" class="active"></li>
                            <li data-target="#w_carousel" data-slide-to="1"></li>
                            <li data-target="#w_carousel" data-slide-to="2"></li>
                            <li data-target="#w_carousel" data-slide-to="3"></li>
                        </ol>

                        <!-- Wrapper for slides -->
                        <div class="carousel-inner" role="listbox">
                            <div class="item active">
                                <img src="/static/home/img/slider/slide1.jpg" alt="...">
                                <div class="carousel-caption">
                                    <h3>First slide label</h3>
                                    <p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
                                </div>
                            </div>
                            <div class="item">
                                <img src="/static/home/img/slider/slide2.jpg" alt="...">
                                <div class="carousel-caption">...</div>
                            </div>
                            <div class="item">
                                <img src="/static/home/img/slider/slide3.jpg" alt="...">
                                <div class="carousel-caption">...</div>
                            </div>
                            <div class="item">
                                <img src="/static/home/img/slider/slide4.jpg" alt="...">
                                <div class="carousel-caption">...</div>
                            </div>
                        </div>

                        <!-- Controls -->
                        <a class="left carousel-control" href="#w_carousel" role="button" data-slide="prev">
                            <span class="glyphicon glyphicon-chevron-left"></span>
                            <span class="sr-only">Previous</span>
                        </a>
                        <a class="right carousel-control" href="#w_carousel" role="button" data-slide="next">
                            <span class="glyphicon glyphicon-chevron-right"></span>
                            <span class="sr-only">Next</span>
                        </a>
                    </div>

                </div>

                <!--<div class="panel panel-default contenttop">
                    <a href="article_detail.html">
                        <strong>博主置顶</strong>
                        <h3 class="title">嫁人就嫁程序员</h3>
                        <p class="overView">个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中。。。</p>
                    </a>
                </div>-->

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>

                    <div class="panel-body">

                        <!--文章列表开始-->
                        <div class="contentList">
                            {notempty name="$articles.list"}
                            {volist name="$articles.list" id="vo"}
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="contentleft">
                                        <h4><a class="title" href="{:url('blog/detail',['id'=>$vo.id])}">{$vo.title}</a></h4>
                                        <!--<p>
                                            <a class="label label-default">Nginx</a>
                                            <a class="label label-default">tomcat负载均衡</a>
                                        </p>-->
                                        <p class="overView">{$vo.intro}</p>
                                        <p>
                                            <span class="count"><i class="glyphicon glyphicon-user"></i><a href="#">admin</a></span>
                                            <span class="count"><i class="glyphicon glyphicon-tasks"></i><a href="{:url('blog/cate',['cate_id'=>$vo.id])}">{$vo.cate_name}</a></span>
                                            <span class="count"><i class="glyphicon glyphicon-eye-open"></i>阅读:{$vo.read_number}</span>
                                            <span class="count"><i class="glyphicon glyphicon-comment"></i>评论:{$vo.comment_count|default=0}</span>
                                            <span class="count"><i class="glyphicon glyphicon-time"></i>{$vo.create_at|date="Y-m-d H:i:s",###}</span>
                                        </p>
                                    </div>
                                    <div class="contentImage">
                                        <div class="row">
                                            <a href="{:url('blog/detail',['id'=>$vo.id])}" class="thumbnail w_thumbnail">
                                                <img src="{$vo.cover}" alt="...">
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            {/volist}
                            {/notempty}
                        </div>
                        <!--文章列表结束-->
                        {$articles.page}
                    </div>
                </div>
            </div>

            <!--左侧开始-->
            <div class="col-lg-3 col-md-3 w_main_right">

                <div class="panel panel-default sitetip">
                    <a href="{:url('blog/notice')}">
                        <strong>站点公告</strong>
                        <h3 class="title">{:config('blog_setting.home_title')}</h3>
                        <p class="overView">{:config('blog_setting.home_notice')}</p>
                    </a>
                </div>

               <!-- <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">热门标签</h3>
                    </div>
                    <div class="panel-body">
                        <div class="labelList">
                            <a class="label label-default">java</a>
                            <a class="label label-default">tomcat负载均衡</a>
                            <a class="label label-default">panel</a>
                            <a class="label label-default" href="/tag/jQuery">jQuery</a>
                            <a class="label label-default" href="/tag/jQuery选择器">jQuery选择器</a>
                            <a class="label label-default" href="/tag/linux">linux</a>
                            <a class="label label-default" href="/tag/Nginx">Nginx</a>
                            <a class="label label-default" href="/tag/linux文件类型">linux文件类型</a>
                            <a class="label label-default" href="/tag/chrome请求两次">chrome</a>
                            <a class="label label-default" href="/tag/Redis">Redis</a>
                            <a class="label label-default" href="/tag/spring">spring</a>
                            <a class="label label-default" href="/tag/tomcat">tomcat</a>
                            <a class="label label-default" href="/tag/SyntaxHighlighter">SyntaxHighlighter</a>
                        </div>
                    </div>
                </div>-->

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">热门内容</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="list-unstyled sidebar">
                            {notempty name="$ranking.list"}
                                {volist name="$ranking.list" id="vo"}
                                    <li>
                                        <a href="{:url('blog/detail',['id'=>$vo.id])}">{$vo.title}</a>
                                    </li>
                                {/volist}
                            {/notempty}
                        </ul>
                    </div>
                </div>
                {include file="public:links" /}

                {eq name=":config('blog_setting.is_qrcode')" value="1"}
                    {notempty name=":config('blog_setting.home_qrcode')"}
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">微信好友</h3>
                        </div>
                        <div class="panel-body">
                            <img src="{:config('blog_setting.home_qrcode')}" style="height: 230.5px;width: 230.5px;" />
                        </div>
                    </div>
                    {/notempty}
                {/eq}


            </div>
        </div>
    </div>
</div>
{include file="public:footer" /}